#ifndef DEALPANDATA_H
#define DEALPANDATA_H

#include <QPainter>
#include <QMap>
#include <QFile>
#include <QTextStream>
#include <QDebug>
class DealPanData
{
public:

    DealPanData(QString path, int type);
    QVector<QPointF> panPoints;
    QVector<QPointF> corePoints;
    QVector<QPointF> panLine;
    QVector<QPointF> coreLine;

private:
    void createPoints();
    void createMatrixFromGenomeData();
    void createMatrixFrom01();
    void createPointsFromMatrix();
    void createLineFromMultiMap();
    void createPointsDirectly();
    qint64 genomeNum2LongLong(int genomeSize);
    QVector<int> whichGenome(qint64 genomeCombination);
    QString filepath;
    int filetype;

    QVector<QVector<bool> > m;//matrix
    int m_line_num ;
    int m_column_num ;
    QMultiMap<qreal, qreal> genomeSize_panNum;
    QMultiMap<qreal, qreal> genomeSize_coreNum;
};

#endif // DEALPANDATA_H
